package com.xuecheng.system;

import com.ctrip.framework.apollo.spring.annotation.EnableApolloConfig;
import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;



/**
 * <p>
 * 系统管理启动类
 * </p>
 *
 * @Description:
 */
@SpringBootApplication(scanBasePackages = {"com.xuecheng.common.exception",
        "com.xuecheng.system","com.xuecheng.common.enums"})
@EnableSwagger2Doc
@EnableApolloConfig
@EnableDiscoveryClient
//@EnumScan(basePackages = "com.xuecheng.common.enums")
public class SystemApplication {

    public static void main(String[] args) {
        System.out.println("springboot启动开始了");
        SpringApplication.run(SystemApplication.class, args);
        System.out.println("springboot启动结束了");
    }
}
